/**
 * =====================================================================================
 *       @file  ngx_core.h
 *      @brief  
 *
 *  Detailed description starts here.
 *
 *   @internal
 *     Created  2012年05月08日 21时48分15秒 
 *    Revision  1.0.0.0
 *    Compiler  gcc/g++
 *
 *     @author  luis
 * =====================================================================================
 */

#ifndef _NGX_CORE_H_INCLUDED_
#define _NGX_CORE_H_INCLUDED_

#include <sys/types.h>
#include <stdio.h>

typedef struct ngx_cycle_s              ngx_cycle_t;
typedef struct ngx_connection_s         ngx_connection_t;
typedef struct ngx_pool_s               ngx_pool_t;
typedef struct ngx_chain_s              ngx_chain_t;
typedef struct ngx_command_s            ngx_command_t;
typedef struct ngx_module_s             ngx_module_t;
typedef struct ngx_event_s              ngx_event_t;
typedef struct ngx_array_s              ngx_array_t;

#define NGX_OK          0
#define NGX_ERROR      -1
#define NGX_AGAIN      -2

typedef void (*ngx_event_handler_pt)(ngx_event_t *ev);
typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);

#endif

